﻿@model PepoBebes.Models.HistorialAgenda
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    
    <div id="update-message" class="error invisible"></div>
@using (Ajax.BeginForm("Create", "HistorialAgenda", null, new AjaxOptions
{
    UpdateTargetId = "update-message",
    InsertionMode = InsertionMode.Replace,
    HttpMethod = "POST",
    OnSuccess = "updateSuccess"
}, new { @id = "HistorialForm" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Historial</legend>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.fecha)*@
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.fecha)
@*            @Html.DisplayFor(model => model.fecha)*@
            @Html.ValidationMessageFor(model => model.fecha)
        </div>

        <div class="editor-label">
            @*@Html.LabelFor(model => model.bebeID, "bebe")*@
        </div>
        <div class="editor-field">
            @Html.HiddenFor(model => model.bebeID)
@*            @Html.DisplayFor(model => model.bebeID)*@
            @Html.ValidationMessageFor(model => model.bebeID)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.descripcion)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.descripcion)
            @Html.ValidationMessageFor(model => model.descripcion)
        </div>
@*
        <p>
            <input type="submit" value="Create" />
        </p>*@
    </fieldset>
}
@*
<div>
    @Html.ActionLink("Back to List", "Index")
</div>*@